package fr.axgame.example;

import fr.axgame.Fight;
import fr.axgame.Hero;
import fr.axgame.Mob;

public class FightOneVersusOne {

	private Fight fight;

	public FightOneVersusOne() {
		Hero hero = new Hero("Hero", 100, 20, 0, 0, 0, 50);
		Mob mob = new Mob("Mob", 100, 0, 0, 0, 50, 0);
		fight = new Fight(hero, mob);
	}

	public String getHeroLife() {
		return fight.getHero().getName() + " : " + fight.getHero().getCurrentLife() + " hp";
	}

	public String getMobLife() {
		return fight.getMob().getName() + " a " + fight.getMob().getCurrentLife() + " hp";
	}

	public String heroAttacksMob() throws Exception {
		return fight.attack(fight.getHero(), fight.getMob()).toString();
	}

	public String mobAttacksHero() throws Exception {
		return fight.attack(fight.getMob(), fight.getHero()).toString();
	}

}
